// 笔试强训day31:数位染色

#include <iostream>
#include <vector>
using namespace std;

int main() {
    string str; cin >> str;
    int n = str.size(), sum = 0;
    for(auto& e : str) 
    {
        e -= '0';
        sum += e;
    }
    if(sum % 2 != 0)
    {
        cout << "No" << endl;
    }
    else 
    {
        sum /= 2;
        vector<vector<bool>> dp(n + 1, vector<bool>(sum + 1, false));
        for(int i = 1; i <= n; i++)
        {
            dp[i][0] = true;
            for(int j = 1; j <= sum; j++)
            {
                if(j == str[i])
                    dp[i][j] = true;
                else if(j > str[i])
                    dp[i][j] = dp[i - 1][j - str[i]] || dp[i - 1][j];
                else
                    dp[i][j] = dp[i - 1][j];
            }
        }
        if(dp[n][sum])
            cout << "Yes" << endl;
        else
            cout << "No" << endl;
    }
}